package com.lxlg.lxlg_order.client.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class DeliverGoodsForm {
    @ApiModelProperty("订单编号")
    @NotEmpty
    private String ordercode;
    @ApiModelProperty("商品skuid")
    @Min(1)
    private Integer skuId;
    @NotEmpty
    @ApiModelProperty("物流单号")
    private String logisticsCode;
    @NotEmpty
    @ApiModelProperty("投递人")
    private String deliveryman;
    @ApiModelProperty("投递人电话")
    @Pattern(regexp = "^(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$")
    private String deliverymanPhone;
    @Min(0)
    @ApiModelProperty("投递公司的id")
    private String logisticsCompanyCode;


}
